<c:set var='view' value='/bonsplans' scope='session' /> 
<!-- BEGIN CONTENT -->
<div id="main">
    <div id="categorycontent" >
        <!-- BEGIN TITLE -->
        <div id="titleExt">
            <h5 class="lefte"> <fmt:message key='titleBP'/> </h5>
            <!--<div class="right">View display <span>1</span> of 10 pages</div>-->
            <div class="sp"></div>
        </div>
        <c:if test="${empty decsremise}">
            <fmt:message key='pasBP'/>
            <br>
            <br><input type="button" value="Retour" onclick="location.href='javascript:window.history.back();'">
        </c:if>
        <c:if test="${not empty decsremise}">
            <!-- BEGIN PRODUCTS -->
            <ul class="categoryproducts">

                <c:forEach var="prod" items="${decsremise}" varStatus="iter">
                    ${(((iter.index+1) % 3) == 0) ? '<li class="last">' : '<li>'}              
                    <a HREF="<c:url value='/product?${prod.produit.idproduit}'/>" class="image"><img SRC="${initParam.productImagePath}${prod.produit.image}" /></a>
                    <div class="price">${prod.produit.prix} &#8364 (${prod.produit.remise}% <fmt:message key='dereduction'/>)</div>
                    <form name="frm_registrar" id="frm_registrar" action="<c:url value='/addcart'/>" method="post">
                        <label for="inputtext1"><fmt:message key='quantity'/>:</label>
                        <input id="inputtext1" size="1" maxlength="3" style="text-align:center" type="text" name="quantity" value="1" onkeyup="this.value=validarSiNumero(this.value)"/>
                        <input type="hidden" name="productid" value="${prod.produit.idproduit}">
                        <input type="hidden" name="page" value="/bonsplans">
                        <input type="image"  src="data/icones/panier.jpg" name="inputsubmit1" align="right" value="<fmt:message key='ajouter'/>" />
                    </form>
                    <h3 class="name"><a HREF="<c:url value='/product?${prod.produit.idproduit}'/>">${prod.description.descriptionBref}</a></h3>
                    </li>
                </c:forEach>
            </ul>
        </c:if>
        <div class="sp"></div>
    </div>
    <!-- END CONTENT -->
    <div class="sp"></div>
    <!--<div id="gopages"><a href="#" class="prev"><img SRC="css/images/gpPrev.jpg" alt="prev" border="0" /></a><span> <a href="#" class="current">1</a> | <a href="#">2</a> | <a href="#">3</a>...</span><a href="#" class="next"><img SRC="css/images/gpNext.jpg" alt="next" border="0" /></a></div>-->
</div>
<div class="sp"></div>
</div>
